from selenium import webdriver

#初始化浏览器driver，并返回driver
def init_driver(browerType='Chrome'):
    driver=None
    if browerType=="Chrome":
        driver = webdriver.Chrome()
    elif browerType=="Firfox":
        driver=webdriver.Firefox()
    elif browerType=="IE":
        driver=webdriver.Ie()

    driver.maximize_window()  # 最大化浏览器
    driver.implicitly_wait(30)
    return driver
